Skip to content

codegen: the int32-key element read passes the split helper its key-fact argument (main does not compile) - #14461

Merged
proggeramlug merged 1 commit into
mainfrom
fix/index-get-int32-key-split-arg
Nov 11, 2026
Merged

proggeramlug merged 1 commit into
mainfrom
fix/index-get-int32-key-split-arg

Conversation

@proggeramlug

@proggeramlug proggeramlug commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Main does not compile perry-codegen since 5bdb09d: crates/perry-codegen/src/expr/index_get.rs, E0061, lower_array_index_get_via_canonical_i32_split takes 10 arguments and the int32-key call site supplies 9.

Key signs (#14458) added the key: Option<KeyFact> parameter; int32 local ranges (#14453) added a new call site at the same time. Each compiled alone, and the merge was textually clean.

The fix passes None at that site. The key there is already an i32 (int32_key::lower), which the split takes as a native key; a key-sign fact would run exact_i32 on it as if it were a double. This is the behavior #14453 shipped.

Checked: cargo check -p perry-codegen --lib on main 41443b0 plus this change. Not built in release and not measured.

@proggeramlug
proggeramlug merged commit 501e783 into main Nov 11, 2026
94 of 101 checks passed
@proggeramlug
proggeramlug deleted the fix/index-get-int32-key-split-arg branch November 11, 2026 14:38
@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Explain Change →

Pre-merge checks: Inconclusive 2

Failed Failed checks: 2 inconclusive

Check name Status Explanation Resolution
Title check Pending This assessment has not completed. The check will be retried on the next pre-merge check run.
Description check Pending This assessment has not completed. The check will be retried on the next pre-merge check run.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant